import request from '@/axios';
import {baseUrl} from '@/config/env';

export const list = (data) => {
    return request({
            url: baseUrl + '/start/actFunDef/page',
            method: 'get',
            params: data
        }
    )
}
export const add = (data) => {
    return request({
            url: baseUrl + '/start/actFunDef/add',
            method: 'post',
            data: data
        }
    )
}

export const updateById = (data) => {
    return request({
            url: baseUrl + '/start/actFunDef/updateById',
            method: 'put',
            data: data
        }
    )
}
export const deleteById = (id) => {
    return request({
            url: baseUrl + '/start/actFunDef/deleteById/' + id,
            method: 'delete',
        }
    )
}
export const getById = (id) => {
    return request({
            url: baseUrl + '/start/actFunDef/getById/' + id,
            method: 'get',
        }
    )
}


const actFunDefApi = {
    list,
    getById,
    updateById,
    deleteById
}
export default actFunDefApi
